package org.atlantis.evnlib.task;

public interface TaskExceptionHandler {

	void handleException(Throwable cause);

	public static class HandlerRegister {

		static TaskExceptionHandler handler = new TaskExceptionHandler() {
			@Override
			public void handleException(Throwable cause) {
				cause.printStackTrace();
			}
		};

		public static void registHandler(TaskExceptionHandler handler) {
			HandlerRegister.handler = handler;
		}
	}
}
